package _0_object_oriented;

/**
 * @author bpzj 2019/11/11 14:54
 */
public abstract class Father {
    public String name;
    public int age;

    public static Father newInstance() {
        return new Son();
    }

    public Father() {
        System.out.println("执行父类的构造器");
        this.name = "father";
        this.age = 33;
    }


    public String getName() {
        return name;
    }
}
